package com.jt.www.domain.enums.pc;

/**
 * 线下录入，推送到保险公司时，加入承保公司的产品编码
 * 当同一地区有多家出单公司时需要配置
 * Created by shaoyn on 2020/08/25.
 */
public enum OfflineAddCompanyEnum {

    HN_JZZ("20PR193410", "河南教职员工校方责任险"),
    HN_XZ("20PR840797", "河南校（园）方责任保险"),
    SD_SX("20PR798133", "山东省校（园）方责任保险-聊城市莘县专属产品 ");

    private String productCode;
    private String productName;

    OfflineAddCompanyEnum(String productCode, String productName) {
        this.productCode = productCode;
        this.productName = productName;
    }

    public static boolean is(String productCode) {
        for (OfflineAddCompanyEnum offlineAddCompanyEnum : OfflineAddCompanyEnum.values()) {
            if (offlineAddCompanyEnum.productCode.equals(productCode)) {
                return true;
            }
        }
        return false;
    }

}
